import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from "axios"

import '@/assets/css/global.less'
import '@/assets/font/iconfont.css'
import SocketService from "@/utils/socket_service"

SocketService.Instance.connect()

axios.defaults.baseURL = "http://127.0.0.1:3000/api"

Vue.config.productionTip = false

Vue.prototype.$echarts = window.echarts
Vue.prototype.$http = axios
Vue.prototype.$socket = SocketService.Instance

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
